<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>网页url黑白名单管理</title>
    <link href="../common/layui/css/layui.css" rel="stylesheet">
    <link href="css/commonStyle.css" rel="stylesheet">
</head>
<body>

<div id="webUrlRosterList_panel">
    <!--展示当前路径-->
    <div class="layui-row background_white visitPathDiv">
        <div class="visitPath"></div>
    </div>
    <!--搜索操作-->
    <div class="layui-row background_white title_menu_place">
        <div class="searchModule layui-form">
            <div class="searchBranch">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">网页url ：</label>
                        <div class="layui-input-inline">
                            <input id="webUrlStr" type="text" name="" class="layui-input" placeholder="请输入">
                        </div>
                    </div>
                </div>
            </div>

            <div class="searchBranch">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">黑白名单 ：</label>
                        <div class="layui-input-inline">
                            <select id="webUrlType" class="layui-select" lay-verify="required" value="">
                                <option value="0">请选择</option>
                                <option value="-1">黑名单</option>
                                <option value="1">白名单</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="searchBranch characters_center">
                <button class="layui-btn  search_webUrlRoster motif_button_style">搜索</button>
            </div>
        </div>
    </div>
    <!-- 网页Url名单列表 -->
    <div id="webUrlRosterList" class="layui-card module_interval">
        <div class="characters_center">
            <button class="layui-btn  addRoster_btn motif_button_style">添加网页 url</button>
        </div>
        <div class="layui-card-header layui_card_header_title layui_card_header_spare">
            网页url黑白名单列表
        </div>
        <div class="layui-card-body layui_card_body_top">
            <table id="webUrlRoster_table" lay-filter="webUrlRoster_table"></table>
        </div>
    </div>

</div>

<!-- 添加webUrl -->
<div id="addWebUrl_panel" class="background_white" style="display: none;">
    <div id="addUserTitle" class="layui-card-header layui_card_header_p_title">新增webUrl</div>
    <div class="table_padding">
        <table class="layui-table">
            <!--<thead>
            <tr>
                <td width="40%">用户参数</td>
                <td width="60%">用户信息</td>
            </tr>
            </thead>-->
            <tbody>

            <tr>
                <td>webUrl</td>
                <td>
                    <input id="userId" type="" name="" style="display: none">
                    <input id="userName" type="" name="" class="layui-input">
                </td>
            </tr>

            <tr>
                <td>类型</td>
                <td>
                    <form class="layui-form" action="" style="padding: 0px;">
                        <div class="layui-form-item" style="margin-bottom: 0px;">
                            <select id="sex" class="layui-select" style="width: 100%">
                                <option selected="selected" value="">请选择</option>
                                <option value="-1">黑名单</option>
                                <option value="1">白名单</option>
                            </select>
                        </div>
                    </form>
                </td>
            </tr>

            </tbody>
        </table>
    </div>
    <div class="background_white characters_center padding_upDown_space">
        <button onclick="User.commit_addUser()" class="layui-btn motif_button_style">提交</button>
        <button id="back_webUrlRosterList_btn" class="layui-btn layui-btn-primary  default_button_style">返回</button>
    </div>
</div>

<input id="report_limlt" value="15" type="hidden">
<input id="pageCount" name="" style="display: none">


<script type="text/html" id="webUrlRosterListBar">
    <a class="layui-btn layui-btn-xs layui-btn-danger delete table_default_btn" lay-event="delete">移除</a>
    {{#  if(d.urlType == -1){ }}
    <a class="layui-btn layui-btn-xs setWhiteList table_default_btn" lay-event="lockingWeb">置为白名单</a>
    {{#  }else if(d.urlType == 1 ){  }}
    <a class="layui-btn layui-btn-xs setBlackList table_default_btn" lay-event="cancelLockingWeb">置为黑名单</a>
    {{#  } }}
</script>

</body>
<script type="text/javascript" src="../common/jquery/jquery.min.js"></script>
<script type="text/javascript" src="assets/xss-filters.1.2.7.min.js"></script>
<script type="text/javascript" src="../common/layui/layui.all.js"></script>
<script type="text/javascript" src="../assets/js/jquery.md5.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/console_ui.js"></script>
<script type="text/javascript" src="js/authorityManagement.js"></script>
<script type="text/javascript" src="js/webUrlRoster.js"></script>
</html>